package crossTab;

import java.util.LinkedList;
import java.util.List;

public class CrossTab {
	
	private String row;
	private String col;
	private int count;
	
	public CrossTab(){}
	
	public CrossTab(String row, String col, int count) {
		super();
		this.row = row;
		this.col = col;
		this.count = count;
	}
	
	public static List<CrossTab> getData(){
		
		List<CrossTab> list = new LinkedList<CrossTab>();
		for(int row = 1; row < 10; row++){
			
			for(int col = 1; col < 10; col++){
				
				list.add(new CrossTab("row:" + row, "col:" + col, row * col));
			}
		}
		return list;
	}
	
	public static void main(String[] args) {
		
		System.out.println(getData());
	}

	public String getRow() {
		return row;
	}

	public void setRow(String row) {
		this.row = row;
	}

	public String getCol() {
		return col;
	}

	public void setCol(String col) {
		this.col = col;
	}

	public int getCount() {
		return count;
	}

	public void setCount(int count) {
		this.count = count;
	}

	@Override
	public String toString() {
		return "CrossTab [row=" + row + ", col=" + col + ", count=" + count + "]";
	}
}
